/**
 * Copyright (C), 2018-2018, https://blog.fundodoo.com
 * Author:   醉探索戈壁
 * Date:     2018/6/26 下午7:13
 * Description: 数据库表User映射实体类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.fundodoo.blog.drunk5.empty;

import lombok.Data;

import javax.persistence.Entity;

/**
 *
 * @author 醉探索戈壁
 * @create 2018/6/26 下午7:13
 * @since 1.0.0
 */
@Data
@Entity(name = "t_user") //jpa时使用
public class User {

    private Long id;
    private String name;
    private String password;

    public User(){

    }

    public User(String name,String password){
        this.name = name;
        this.password = password;
    }

}
